home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cug233 / mstsdr.c < prev    next >
Text File  |  1987-06-30  |  1KB  |  38 lines

  1. /*  VERSION 0009  (DATE: 17/05/87)  (TIME: 14:17)  */
  2. /* mstsdr.c -- call xdentals function 1 times and print result*/
  3. #include <STDIO.H>
  4. #include <MATH.H>
  5. main()
  6. {
  7.     double y,arg;
  8.     int i;
  9.     y=0;
  10.     printf("Enter argument: ");
  11.     scanf("%lf\n",&arg);
  12.     printf("Argument = %f\n",arg);
  13.     y=sin(arg);
  14.     printf("sin(%f)=%19.9e\n",arg,y);
  15.     y=cos(arg);
  16.     printf("cos(%f)=%19.9e\n",arg,y);
  17.     y=tan(arg);
  18.     printf("tan(%f)=%19.9e\n",arg,y);
  19.     y=asin(arg);
  20.     printf("asin(%f)=%19.9e\n",arg,y);
  21.     y=acos(arg);
  22.     printf("acos(%f)=%19.9e\n",arg,y);
  23.     y=atan(arg);
  24.     printf("atan(%f)=%19.9e\n",arg,y);
  25.     y=sinh(arg);
  26.     printf("sinh(%f)=%19.9e\n",arg,y);
  27.     y=cosh(arg);
  28.     printf("cosh(%f)=%19.9e\n",arg,y);
  29.     y=tanh(arg);
  30.     printf("tanh(%f)=%19.9e\n",arg,y);
  31.     y=exp(arg);
  32.     printf("exp(%f)=%19.9e\n",arg,y);
  33.     y=log(arg);
  34.     printf("log(%f)=%19.9e\n",arg,y);
  35.     y=log10(arg);
  36.     printf("log10(%f)=%19.9e\n",arg,y);
  37. }
  38.